<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="string" uri="http://jakarta.apache.org/taglibs/string-1.1" %>
<%@ taglib uri="/WEB-INF/tlds/pagination.tld" prefix="pagination" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <link href="/common/css/popup.css" rel="stylesheet" type="text/css" />
    <title>Dayve 비밀번호 찾기</title>
    <script type="text/javascript" src="/common/js/common.js"></script>
    <script type="text/javascript">
        function browsercheck(){
            var UserAgent=navigator.userAgent;
            if(UserAgent.match(/iPhone/) ){
                return "1";
            }
            else if(UserAgent.match(/Android/)){
                return "2";
            }else{
                return "3";
            }
        }

        function mobileFaq() {
            var TheForm = document.frm;
            TheForm.browserType.value = browsercheck();
            alert(TheForm.browserType.value);
            TheForm.action = "/faq.do";
            TheForm.submit();
        }

        function jsFindPassword() {
            var TheForm = document.frm;
            if(trim(TheForm.fPassword_id.value) == ""){
                alert('<spring:message code="findPassword.alert1" />');
                TheForm.fPassword_id.value = "";
                TheForm.fPassword_id.focus();
                return false;
            }else if(trim(TheForm.fPassword_email.value) == ""){
                alert('<spring:message code="findPassword.alert2" />');
                TheForm.fPassword_email.value = "";
                TheForm.fPassword_email.focus();
                return false;
            }else{
                TheForm.nextTarget.value = "sendMailResult";
                TheForm.action = "/sendMail.do";
                TheForm.submit();
            }
        }

    </script>
</head>

<body>
<div id="popup_title">
    <img src="/images/intro/popup_title.gif" />
</div>
<div class="popup_text">
    <form name="frm" method="POST">
        <input type="hidden" name="mailType" value="2">
        <input type="hidden" name="nextTarget" value="">

        <div class="popup_bold"><spring:message code="findPassword.id" /><input type="text" name="fPassword_id" id="fPassword_id" class="popup_input" /></div>
        <div class="popup_bold02"><spring:message code="findPassword.email" /><input type="text" name="fPassword_email" id="fPassword_email" class="popup_input" /></div>
        <p><spring:message code="findPassword.guide1" /><br />
           <spring:message code="findPassword.guide2" /></p><br />
        <p><spring:message code="findPassword.guide3" /><br />
            <spring:message code="findPassword.guide4" /></p><br />
        <p class="popup_bold"><spring:message code="findPassword.guide5" /></p><br />
        <a href="javascript:jsFindPassword()"><img src="/images/intro/btn_send02.gif" /></a>
    </form>
</div>
</body>
</html>